﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace TjZheng.WebApi.Test.Controllers
{
    public class DemoController : ApiController
    {
        public string Get()
        {
            return "DemoController.Get()";
        }

        [HttpGet]
        [ActionName("Get")]
        public string Retrieve()
        {
            return "DemoController.Retrieve()";
        }
        public string Get(string x)
        {
            return "DemoController.Get(string x)";
        }

        public string Get(string x,string y)
        {
            return "DemoController.Get(string x,string y)";
        }

        public string Get(int x, int y)
        {
            return "DemoController.Get(int x,int y)";
        }

        // POST api/Demo
        public void Post([FromBody]string value)
        {
        }

        // PUT api/Demo/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/Demo/5
        public void Delete(int id)
        {
        }
    }
}
